<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
Class Mtvshow extends MY_Model
{
    public function __construct()
    {
        parent::__construct();
    }
    
    public function getTVShow($name_ascii){
        //SELECT c.name as cname, c.logo as clogo, tv.* FROM tvshow as tv JOIN channel as c ON tv.channel_id = c.id WHERE tv.id = ".$id
        $data = $this->db->query("SELECT c.name as cname, c.logo as clogo, tv.* FROM tvshow as tv JOIN channel as c ON tv.channel_id = c.id WHERE name_ascii = '".$name_ascii."'")->row_object();
        return $data;
    }
    
    public function ajaxplusflag0(){
		$this->session->set_userdata(array( 'flag' => '-1'));
		return $this->session->userdata('flag').'';
	}
}
